Hover
AutomatR.Web.Hover
The "Hover" activity in AutomatR's Web Activities category is designed to simulate hovering over a specified UI element on a web page. Hovering is a common action used in web automation to trigger certain behaviors, such as displaying additional information or revealing hidden elements.
Properties
Name | Description |
---|---|
Input | |
Element | Allows you to select the web element using the selector window. Use this property if you want to indicate the web element directly within the activity. |
WebElement | Specifies the UI Element variable identified by the "Find Element" or other activities. This allows you to use a previously identified web element in the workflow. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Hover" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Timeout | Specifies the maximum time (in seconds) to wait for the activity to be executed before throwing an exception. Integer variables containing the timeout duration. The default timeout is set in the Constants.Timeout constant. |
Output | |
Result | Outputs a boolean value indicating whether the hover action was successful or encountered any errors. Variables of relevant types (e.g., Boolean variables) can be used to store the operation result. |
How to use:
- Drag and drop the "Hover" activity onto the workflow.
- Configure the properties by choosing either the direct web element or providing a UI Element variable.
- Optionally, configure the delay and timeout based on your requirements.
- Execute the workflow to simulate the hover action over the specified web element on the web page.
Example: Consider an example where the "Hover" activity is used to simulate hovering over a button on a web page:
Hover:
Delay: 2
Timeout: 10
Element: Selector forButtonElement
Result: isHoverSuccessful
In this example, the activity waits for 2 seconds, has a timeout of 10 seconds, and simulates the hover action over the web element identified by the selector "forButtonElement" on the web page.